# -*- coding: utf-8 -*-
# @Time    : 2023/6/5 10:00
# @Author  : hy
# @Email   : 1596096369@qq.com
# @File    : personal_page.py
# @Software: PyCharm
from pages.base_page import BasePage
from appium.webdriver.common.mobileby import MobileBy as By

class PersonalPage(BasePage):
    user_list_locater = (By.XPATH,'//*[@resource-id="com.xiachufang:id/webview_fragment_web_view_container"]/android.webkit.WebView[1]/android.webkit.WebView[1]/android.view.View[1]/android.view.View[1]/android.view.View[1]')

    #获取个人收藏清单列表标题文本
    def get_user_list(self):
        return self.find_element(self.user_list_locater).text